昨天遇到的問題是在manager內安裝ControlNet Auxiliary Preprocessors
卻出現(IMPORT FAILED) ComfyUI's ControlNet Auxiliary Preprocessors
接著我試著fix、restart、refresh、卸載後改用官方的手動安裝,通通失敗。
一開始以為是pip沒辦法使用,去重新安裝python,直到我按照這篇文章,去檢查“segment anything” 和 “omegaconf”,在cmd pip install omegaconf
的過程中找到這個bug
WARNING: The scripts lsm2bin.exe, tiff2fsspec.exe, tiffcomment.exe and tifffile.exe are installed in 'D:\Desktop\SD\ComfyUI_windows_portable\python_embeded\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
WARNING: The scripts imageio_download_bin.exe and imageio_remove_bin.exe are installed in 'D:\Desktop\SD\ComfyUI_windows_portable\python_embeded\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
因為我把comfyUI整包可攜式檔案存放在D槽,有些檔案像是lsm2bin.exe
、tiff2fsspec.exe
因為路徑關係無法執行,正因為無法執行這些文件,才會出現IMPORT FAILED。
就是把D槽中的安裝路徑添加到PATH環境變數中,讓他認得
Path
,選擇它後點擊「編輯」。D:\桌面\SD\ComfyUI_windows_portable\python_embeded\Scripts
複製並粘貼到新的條目中。或是更暴力的,直接把整包檔案丟到可以系統預設能自動識別PATH的C槽。
:把整包ComfyUI剪下、貼上C槽(系統預設的應用安裝路徑)